package com.lsno.finance.exception;

import com.lsno.finance.enums.ResultEnum;


/**
 * Created by liuzeyang
 * 2017-01-21 14:05
 */
public class MyException extends RuntimeException{

	/**异常编码*/
    private Integer code;

    public MyException(ResultEnum resultEnum) {
        super(resultEnum.getMsg());
        this.code = resultEnum.getCode();
    }

    public Integer getCode() {
        return code;
    }

    public void setCode(Integer code) {
        this.code = code;
    }
}
